﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.ComponentModel;
using System.Reflection;

namespace MemoBoss
{
    public partial class Help : UserControl
    {
        Action returnMethod;
        Action SetBackgroundPicture;
        public Help(Action callback,Action SetBGPicture)
        {
            SetBackgroundPicture = SetBGPicture;
            
            returnMethod = callback;
            InitializeComponent();
            
        }
       
        private void goBack() 
        {
            Hide.Begin();
            returnMethod();
        }
      

        private void btnBack_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            goBack();
        }

        private void LayoutRoot_Loaded(object sender, RoutedEventArgs e)
        {
          
        }

        private void Show_Completed(object sender, EventArgs e)
        {
            SetBackgroundPicture();
        }

        public void ExitScreen()
        {
            this.Hide.Begin();
        }
      
    }
}
